package com.example.demo;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

@RestController
@RequestMapping("/hello")
public class HelloController {


    List<Integer> a = new ArrayList<>();

//    @GetMapping("/say")
    @RequestMapping("/say")
    public String sayHello(){
        return "Hello Spring";
    }

    public void test() {
        for (Integer integer : a) {
            System.out.println(a);

        }
    }

    public static void main(String[] args) {

        int size = a.size();

    }
}